'use strict';
/*
 * 运营管理——分组管理
 * @type {*}
 */
let underscore = require('underscore');
let RestifyProxy = require('../../util/RestifyProxy');
let StringUtil = require('../../util/StringUtil');
let Constant = require('../../model/Constant');
let baseService = require('../BaseService');
const URI = {
    SINGLELIST: '/asset/lifecycle',//列表
    SINGLELAMP_EXPORT:'/asset/downloadFile',//导出
    SINGLE_DELETE:'/asset/delete/{0}',//删除
    MAPLIST:'',
    IMSI:'/company/list',
    NET_END:'',
    SINGLE_SAVE:""

};

/*分组管理-列表数据*/
module.exports.singleLampList = function (thiz, params) {
    return baseService.get(thiz, URI.SINGLELIST, params);
};

/*分组管理-Excel导出*/
module.exports.singleLampExport  = function (thiz,params) {
    return baseService.get(thiz,URI.SINGLELAMP_EXPORT, params);
};
//删除
module.exports.deleteSingleLamp = function (thiz, deviceId) {
    return baseService.del(thiz, StringUtil.format(URI.SINGLE_DELETE, deviceId));
};
/*项目地图经纬度*/
module.exports.getLampMapList = function (thiz, params) {
    return baseService.get(thiz, URI.MAPLIST, params);
};
/*刷新终端数据*/
module.exports.refreshNetEnd = function (thiz, params) {
    return baseService.get(thiz, URI.NET_END, params);
};
/*IMSI查询列表*/
module.exports.getIMSIList = function (thiz, params) {
    return baseService.get(thiz, URI.IMSI, params);
};
/*
保存新增单灯*/
module.exports.saveSingleLamp = function (thiz, params) {
    return baseService.post(thiz, URI.SINGLE_SAVE, params);
};


